<template>

</template>

<script>
import request from "@/utils/request";

export default {
  name: "BasePage",
  data() {
    return {}
  },
  created() {
  },
  methods: {
    // 查询列表
    getDataList: function (url, params) {
      return request({
        url: url,
        method: 'get',
        params: params
      })
    },
    // 查询详细
    getData: function (url) {
      return request({
        url: url,
        method: 'get'
      })
    },
    // 新增
    addData: function (url, data) {
      return request({
        url: url,
        method: 'post',
        data: data
      })
    },
    // 修改
    updateData: function (url, data) {
      return request({
        url: url,
        method: 'put',
        data: data
      })
    },
    // 删除
    delData: function (url) {
      return request({
        url: url,
        method: 'delete'
      })
    }
  }
}
</script>

<style scoped>

</style>
